<?php

namespace App\Models;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Passport\HasApiTokens;
/**
 * App\Models\Customer
 *
 * @property int $id
 * @property string $user_name 用户名
 * @property string $user_coin 用户余额
 * @property string $user_password 用户密码
 * @property string $user_salt 盐值
 * @property string $user_sign 签名
 * @property string $user_reg_time 注册时间
 * @property string $user_last_login_time 上次登录时间
 * @property string $user_birthday 生日
 * @property string $user_sex 性别 1男 2女
 * @property string $user_nickname 昵称
 * @property string $user_avatar 头像
 * @property string $user_token 令牌
 * @property string $union_id union_id
 * @property string $open_id open_id
 * @property string $is_push is_push
 * @property string $user_score 积分
 * @property string $defaultAddress 默认地址
 * @property string $is_first 是否首次充值 1首冲  0不是
 * @property string $Invite_code 邀请码
 * @property int $BNF_Lv1 上级  邀请受益人
 * @property int $BNF_Lv2 次级  邀请受益人
 * @property int $BNF_Lv3 三级  邀请受益人
 * @property int $BNF_Lv4 四级  邀请受益人
 * @property string $login_type 登录类型  WxLogin TxLogin mobile
 * @property int $is_disabled 是否禁用用户
 * @property-read \Illuminate\Database\Eloquent\Collection|\Laravel\Passport\Client[] $clients
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Comment[] $comment
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
 * @property-read \Illuminate\Database\Eloquent\Collection|\Laravel\Passport\Token[] $tokens
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereBNFLv1($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereBNFLv2($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereBNFLv3($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereBNFLv4($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereDefaultAddress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereInviteCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereIsDisabled($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereIsFirst($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereIsPush($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereLoginType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereOpenId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUnionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserAvatar($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserBirthday($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserCoin($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserLastLoginTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserNickname($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserPassword($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserRegTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserSalt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserScore($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserSex($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserSign($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Customer whereUserToken($value)
 * @mixin \Eloquent
 */
class Customer extends Authenticatable
{

    use Notifiable,HasApiTokens;

    protected $table = 'user';

    public $timestamps = false;

    public function comment()
    {
       return $this->hasMany('App\Models\Comment','uid');
    }
}
